#!/bin/bash

check=$(grep "wearable" $1)
if [ "$check" != "" ]; then
    exit 0
fi

sed -i "/\"deviceType\"/a\      \"wearable\"," $1

check=$(grep "wearable" $1)
if [ "$check" == "" ]; then
    exit 1
else
    exit 0
fi
